<?php

/**
 * @Author: Wang Chunsheng 2192138785@qq.com
 * @Date:   2020-03-02 07:38:50
 * @Last Modified by:   Wang Chunsheng 2192138785@qq.com
 * @Last Modified time: 2020-03-02 07:38:50
 */


use yii\helpers\Html;
use common\widgets\MyActiveForm;
use yii\helpers\ArrayHelper;

/* @var $this yii\web\View */
/* @var $model common\models\DdGoods */
/* @var $form yii\widgets\MyActiveForm */
?>

<div class="dd-goods-form">

    <?php $form = MyActiveForm::begin(); ?>

    <?= $form->field($model, 'goods_name')->textInput(['maxlength' => true]) ?>
    <?= $form->field($model, 'category_id')->dropDownList(ArrayHelper::map($catedata, 'category_id', 'name')); ?>

    <?= $form->field($model, 'spec_type')->textInput() ?>

    <?= $form->field($model, 'deduct_stock_type')->textInput() ?>

    <?= $form->field($model, 'content')->widget('kucha\ueditor\UEditor', []); ?>

    <?= $form->field($model, 'sales_initial')->textInput() ?>

    <?= $form->field($model, 'sales_actual')->textInput() ?>

    <?= $form->field($model, 'goods_sort')->textInput() ?>

    <?= $form->field($model, 'delivery_id')->textInput() ?>

    <?= $form->field($model, 'goods_status')->textInput() ?>

    <?= $form->field($model, 'is_delete')->textInput() ?>

    <?= $form->field($model, 'wxapp_id')->textInput() ?>

    <?= $form->field($model, 'create_time')->textInput() ?>

    <?= $form->field($model, 'update_time')->textInput() ?>


    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
        </div>
    </div>

    <?php MyActiveForm::end(); ?>

</div>